using System;
using System.Collections.Generic;
using System.Web.Mvc;
using AspNetMvc.Services.Events.Interfaces;

namespace AspNetMvc.Services.Events
{
   internal class EventHoursListGenerator : IEventHoursListGenerator
   {
      public List<SelectListItem> GetHoursList()
      {
            var hoursList = new List<SelectListItem>();

            for (int i = 0; i <= 23; i++)
              hoursList.Add(new SelectListItem {Value = i.ToString(), Text = String.Format("{0:00}", i)});

            return hoursList;

      }
   }
}